\begin{lstlisting}[label=driver_config_01, caption={Příklad konfigurace
ovládače robota.}, breaklines=true]
<?xml version="1.0" encoding="UTF-8"?>
<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schema/util/spring-util-2.0.xsd"
  default-lazy-init="true">

  <!-- Application settings: -->
  <bean id="applicationSettings" class="cz.cuni.mff.ufal.volk.ApplicationSettings" scope="singleton">
    <property name="locale">
      <bean class="java.util.Locale">
        <constructor-arg value="cs" />
      </bean>
    </property>
  </bean>

  <util:list id="components">

    <ref bean="server" />

    <bean id="userInput" class="cz.cuni.mff.ufal.volkapp.UserTextInput" destroy-method="close">
      <constructor-arg value="#stop" />
      <constructor-arg>
        <list>
           <bean class="cz.cuni.mff.ufal.volk.ReaderInputProcessor">
             <constructor-arg ref="server" />
             <constructor-arg value="řekni" />
           </bean>

           <bean class="cz.cuni.mff.ufal.volk.RssInputProcessor">
             <constructor-arg ref="server" />
             <constructor-arg value="rss" />
             <constructor-arg>
               <util:map>
                 <entry key="ihned" value-ref="feed.ihned" />
                 <entry key="volejbal" value-ref="feed.volejbal" />
               </util:map>
             </constructor-arg>
             <property name="maxMessageCount" value="3" />
           </bean>

           <bean class="cz.cuni.mff.ufal.volk.NabaztagInputProcessor">
             <constructor-arg>
               <bean class="cz.cuni.mff.ufal.robot.services.TrivialLanguageRecognizer">
                 <constructor-arg value="cs" />
               </bean>
             </constructor-arg>
             <constructor-arg>
               <bean class="cz.cuni.mff.ufal.robot.nlp.SwiplUnderstander">
                 <constructor-arg value="cs" />
                 <constructor-arg value="../nlu_prolog_simplecs/pl/sentence.pl" />
               </bean>
             </constructor-arg>
             <constructor-arg>
               <bean class="cz.cuni.mff.ufal.volk.NabaztagSimpleInterpreter">
                 <constructor-arg ref="server" />
               </bean>
             </constructor-arg>
            </bean>
         </list>
      </constructor-arg>
    </bean>
  </util:list>

  <bean id="server" class="cz.cuni.mff.ufal.volk.NabaztagControllerImpl" destroy-method="close">
    <constructor-arg>
      <list>
        <bean class="cz.cuni.mff.ufal.volk.events.BasicNabaztagEventListener">
        </bean>
      </list>
    </constructor-arg>
    <property name="listenerAddress" value="http://192.168.1.101:8081" />
    <property name="workingFolder" value="C:/Users/jelcyn/Temp/volk" />
    <property name="removeTempFiles" value="false" />
  </bean>

  <bean id="feed.ihned" class="cz.cuni.mff.ufal.volk.RssInputProcessor.FeedConfiguration">
    <constructor-arg value="http://ihned.cz/?p=000000_rss" />
    <property name="encoding" value="windows-1250" />
  </bean>

  <bean id="feed.volejbal" class="cz.cuni.mff.ufal.volk.RssInputProcessor.FeedConfiguration">
    <constructor-arg value="http://servis.idnes.cz/rss.asp?c=volejbalh" />
  </bean>

  <!-- Services: -->

  <bean id="volk.tts" class="cz.cuni.mff.ufal.robot.services.EposTextToSpeech" destroy-method="close">
    <constructor-arg value="C:\Program Files (x86)\Epos_2.4\bin\epos.exe" />
    <constructor-arg value="4444" />
  </bean>

  <bean id="volk.stdout" class="cz.cuni.mff.ufal.ConsoleUserTextOutput" />

  <util:map id="services">
    <entry key="volk.tts" value-ref="volk.tts" />
    <entry key="volk.stdout" value-ref="volk.stdout" />
  </util:map>

</beans>
\end{lstlisting}